package com.jk.garden1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 发卡管理表
 */
@Data
@TableName("sendcard_table")
@Document(indexName = "sendcard",type = "doc")
public class SendcardEntity {
    @Id
    @Field(type = FieldType.Integer)
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Field(type = FieldType.Text)
    private String cardnumber;//卡号
    @Field(type = FieldType.Text)
    private String name;//姓名
    @Field(type = FieldType.Text)
    private String phone;//电话
    @Field(type = FieldType.Text)
    private String getcardtime;//领卡时间
    @Field(type = FieldType.Text)
    private String validitytime;//有效期
    @Field(type = FieldType.Text)
    private String classify;//分类（通行卡，常访卡，临时卡）
    @Field(type = FieldType.Text)
    private String status;//状态（正常，已停用，失效）
    @Field(type = FieldType.Text)
    private String idcard;//身份证
    @Field(type = FieldType.Text)
    private String intervieweename;//被访人姓名
    @Field(type = FieldType.Text)
    private String placecompany;//所在公司

}
